﻿using FluentValidation;
using TodoListWebApi.Models;

namespace TodoListWebApi.Validators
{
    public class TodoValidator : AbstractValidator<ToDoReq>
    {
        public TodoValidator()
        {
            RuleFor(x => x.Title)
                .NotEmpty().WithMessage("标题是必填的");
        }
    }
}
